<?php

/**
 * Favlab Convert
 *
 * $Id: shenzhongjie $
 */

$hostname='jeremyshenlytech.db.5904673.hostedresource.com';
$username='jeremyshenlytech';
$password='h32JY5AH728ihi';
$dbname='jeremyshenlytech';
$usertable='pics';

mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.');
mysql_select_db($dbname);


$limit = 1;
$nextid = 0;
$end = 331;

$start = $_GET['start'];

$query = mysql_query("SELECT * FROM $usertable WHERE ppid>'$start' ORDER BY ppid LIMIT $limit");
while ($news = mysql_fetch_array($query)) {

	$nextid = $news['ppid'];

	$setcontent = array();
	$setcontent['aid'] = $news['dir'];

}

if($nextid) {
	echo "<script>settimeout(\"?start=$start\", 500);</script>";
}

?>